package com.yt.service;

import com.yt.util.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @Classname AccountService
 * @Description
 * @Date 2021/11/2 11:12
 * @Create by 杨涛
 */
@FeignClient("seata-account-service")
public interface AccountService {

    @RequestMapping("/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId
            , @RequestParam("money") BigDecimal money,@RequestParam("xid") String xid);
}
